package com.dingding.common.core.im.dto;

/**
 * @ClassName: FormatType
 * @Description: 请求格式(枚举)
 * @author yuHaiQing
 * @date 2016年3月30日 下午4:56:59
 */
public enum FormatType {
	
	json("json", 0), xml("xml", 1);

	private String name;
	private int index;
	
	public int getIndex(){
		return index;
	}

	private FormatType(String name, int index) {
		this.name = name;
		this.index = index;
	}

	@Override
	public String toString() {
		return this.name;
	}
}
